package ro.pub.cs.hwchecker.comm.client.data;

public class Evaluation {
	// Test case
	public static class TestCase {
		/**
		 * Per-test earned points.
		 */
		public int points;
		
		/**
		 * Status of this particular test.
		 */
		public int status;
		
		/**
		 * Teacher comments
		 */
		public String comment;
		
		/**
		 * The output of the automatic evaluator regarding this
		 * particular test.
		 */
		public String evalLog;
	}
	
	/**
	 * Status indicating that no archive was sent for evaluation.
	 */
	public static final int STATUS_NOT_SENT = -1;
	
	/**
	 * Status indicating the evaluation has not started.
	 */
	public static final int STATUS_NOT_RUN = 0;
	
	/**
	 * Status indicating the evaluation is running on the server.
	 */
	public static final int STATUS_PENDING = 1;
	
	/**
	 * Status indicating the evaluation timed out. 
	 */
	public static final int STATUS_TIME_OUT = 2;
	
	/**
	 * Status indicating the evaluation completed and the results were
	 * successful.
	 */
	public static final int STATUS_PASSED = 3;
	
	/**
	 * Status indicating the evaluation completed and the results were
	 * unsuccessful.
	 */
	public static final int STATUS_FAILED = 4;
	
	
	/**
	 * General grade of the evaluation.
	 */
	public int grade;
	
	/**
	 * General status of the evaluation.
	 */
	public int status;
	
	/**
	 * Teacher comments.
	 */
	public String comment;
	
	/**
	 * The output of the automatic evaluator regarding the archive.
	 */
	public String evalLog;
}
